﻿using BackData;
using MediatR;
using Server.API.DTOs;
using System.ComponentModel.DataAnnotations;

namespace Server.API.Application.Command.Goods
{
    public class GoodsGetCommand:IRequest<APIPaging<GoodDTO>>
    {
        /// <summary>
        /// 当前页
        /// </summary>
        public int pageindex { get; set; } = 1;
        /// <summary>
        /// 当前页容量
        /// </summary>
        public int pagesize { get; set; }=4;
        /// <summary>
        /// 商品名称
        /// </summary>
        [StringLength(15)]
        public string? GoodsName { get; set; }
        /// <summary>
        /// 生产批次
        /// </summary>
        [StringLength(15)]
        public string ? Order { get; set; }

        /// <summary>
        /// 保质期
        /// </summary>
        public float?  Expired { get; set; }

        /// <summary>
        /// 生产许可证号
        /// </summary>
        [StringLength(30)]
        public string? Allownum { get; set; }

        /// <summary>
        /// 生产企业
        /// </summary>
        [StringLength(15)]
        public string? Companyname { get; set; }
    }
}
